package com.whxd.smarthome.api.rest.dto;

import java.nio.channels.Channel;
import java.util.ArrayList;
import java.util.List;

public class GetDevicesResponseDto {

	private String deviceId;// 设备ID
	private boolean online;// [bool]是否在线
	private String deviceModel;// 设备型号
	private String name;// 设备名称
	private boolean beSharedTo;// [bool]是否分享给别人的
	private boolean beSharedFrom;// [bool]是否从别人那里分享的

	private List<ChannelDto> channels = new ArrayList<ChannelDto>();

	public String getDeviceId() {
		return deviceId;
	}

	public void setDeviceId(String deviceId) {
		this.deviceId = deviceId;
	}

	public boolean isOnline() {
		return online;
	}

	public void setOnline(boolean online) {
		this.online = online;
	}

	public String getDeviceModel() {
		return deviceModel;
	}

	public void setDeviceModel(String deviceModel) {
		this.deviceModel = deviceModel;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public boolean isBeSharedTo() {
		return beSharedTo;
	}

	public void setBeSharedTo(boolean beSharedTo) {
		this.beSharedTo = beSharedTo;
	}

	public boolean isBeSharedFrom() {
		return beSharedFrom;
	}

	public void setBeSharedFrom(boolean beSharedFrom) {
		this.beSharedFrom = beSharedFrom;
	}

	public List<ChannelDto> getChannels() {
		return channels;
	}

	public void setChannels(List<ChannelDto> channels) {
		this.channels = channels;
	}

	// {
	// "deviceId":"设备ID",
	// "online":"[bool]是否在线",
	// "deviceModel":"设备型号",
	// "name":"设备名称",
	// "beSharedTo":"[bool]是否分享给别人的",
	// "beSharedFrom":"[bool]是否从别人那里分享的",
	// "channels":
	// [
	// {
	// "channelId":"[int]通道号",
	// "channelName":"通道名称",
	// "channelOnline":"[bool]是否在线",
	// "channelPicUrl":"缩略图URL"
	// }
	// ]
	// }

	
}
